/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jm.acionista.entity;

import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author joao
 */
@Entity
@Table(name = "relatorio_certificado_temp", catalog = "acionista", schema = "dbo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "RelatorioCertificadoTemp.findAll", query = "SELECT r FROM RelatorioCertificadoTemp r")})
public class RelatorioCertificadoTemp implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_cliente", nullable = false)
    private Integer idCliente;
    @Size(max = 60)
    @Column(name = "nom_cliente", length = 60)
    private String nomCliente;

    public RelatorioCertificadoTemp() {
    }

    public RelatorioCertificadoTemp(Integer idCliente) {
        this.idCliente = idCliente;
    }

    public Integer getIdCliente() {
        return idCliente;
    }

    public void setIdCliente(Integer idCliente) {
        this.idCliente = idCliente;
    }

    public String getNomCliente() {
        return nomCliente;
    }

    public void setNomCliente(String nomCliente) {
        this.nomCliente = nomCliente;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idCliente != null ? idCliente.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RelatorioCertificadoTemp)) {
            return false;
        }
        RelatorioCertificadoTemp other = (RelatorioCertificadoTemp) object;
        if ((this.idCliente == null && other.idCliente != null) || (this.idCliente != null && !this.idCliente.equals(other.idCliente))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.jm.acionista.entity.RelatorioCertificadoTemp[ idCliente=" + idCliente + " ]";
    }
    
}
